09. Organizing your files (mkdir, mv)
Organizing your files
With the Shell, you can use commands to organize your files into directories, move files, copy or remove the files.
Use the workspace below the video to practice the commands and remember to practice locally in your computer too.
Ud206 009 Shell P6 - Organizing Your Files
Commands
mkdir
: Creates directories.mv
: Move files from a directory to another.
## Workspace
You can use this workspace to test your commands.
Code
If you need a code on the https://github.com/udacity.
Moving them back
SOLUTION:
- `mv Documents/Books/* Documents`
- `cd Documents; mv Books/*.epub .`
- `cd Documents/Books; mv * ..`
By the way, when you quote something in the shell, you always use straight quotes. This is what you'll get if you type into a terminal window. However, if you copy and paste from a web page or document, you should be really careful to make sure that it hasn't accidentally been written with “curly quotes”
. Curly quotes will not work in the shell.
Single quotes and double quotes do slightly different things in the shell. If you're unsure which to use, go for single quotes.